<form id="editform">
	<input type="hidden" value="${user.id}" name="id">
	<table class="table table-hover table-bordered">
		<tr>
			<th>手机</th>
			<td><input name="mobile" class="form-control" maxlength="11" value="${user.mobile!}" /></td>
		</tr>

		<tr>
			<th>邮箱</th>
			<td><input name="email" class="form-control"  value="${user.email!}" /></td>
		</tr>
		<tr>
			<th>真实姓名</th>
			<td><input name="realName"  maxlength="30" class="form-control"  value="${user.realName!}" /></td>
		</tr>

	</table>
</form>
<div class="center-block">
	<button class="btn btn-success" onclick="submit()">提交</button>
</div>
<script type="text/javascript">
	function submit() {
		if ($("#editform").valid()) {
			art.dialog.post({
				url:"/user/o_save.do",
				data:$("#editform").serialize(),
				success:function(data){
					if(data.success){
						refresh();
					}else{
						 art.dialog.tips(data.msg);
					}
				}
			},"保存中 ……");
		}
	}
	
</script>


